﻿#ifndef LONGESTVALIDPARENTHESES_H_
#define LONGESTVALIDPARENTHESES_H_

namespace algorithm {
    /**
     * @brief 给你一个只包含 '(' 和 ')' 的字符串，找出最长有效（格式正确且连续）括号子串的长度.
     * https://leetcode.cn/problems/longest-valid-parentheses/description/
     */
    class CLongestValidParentheses
    {
    public:
        static int Length(std::string s);
    };
}

#endif //!LONGESTVALIDPARENTHESES_H_
